package org.healer.simple_juc;

public class TestRunabel implements Runnable{
        @Override
        public void run() {
//        run方法线程体
            for(int i=0;i<20;i++){
                System.out.println("我在看代码："+i);
            }
        }
        public static void main(String[] args) {
            Thread thread=new Thread(new TestRunabel());
            thread.start();
            for(int i=0;i<200;i++){
                System.out.println("我在学习多线程："+i);
            }
        }
    }
